<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');


    $router->resource('announcements', 'AnnouncementController');
    $router->resource('book_categories', 'BookCategoryController');
    $router->resource('books', 'BookController');
    $router->resource('book_selves', 'BookSelfController');
    $router->resource('floors', 'FloorController');
    $router->resource('borrow_books', 'BorrowBookController');
    $router->resource('book_comments', 'BookCommentController');
    $router->resource('chat_rooms', 'ChatRoomController');
    $router->resource('levels', 'LevelController');
    $router->resource('users', 'UserController');

});
